package _spring_test._annoBean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AnnoBeanTest2 {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("annoBean/applicationContext-annoBean2.xml");
        AnnoUser annoUser = (AnnoUser) ac.getBean("annoUser");
        System.out.println(annoUser.getName());
    }
}
